--主入口函数。从这里开始lua逻辑
require("Common/define");
require("Common/functions");
require("Common/protocal");
require("class");
Event= require("events");




function Main()					
	local breakSocketHandle,debugXpCall = require("LuaDebugjit")("localhost",7003)
	local timer = Timer.New(function() 
	breakSocketHandle() end, 1, -1, false)
	timer:Start();
end

--场景切换通知
function OnLevelWasLoaded(level)
	collectgarbage("collect")
	Time.timeSinceLevelLoad = 0
end